@{ 
    var previewId = Guid.NewGuid();
}

<a id="previewButton" target="_blank" class="publish-button btn btn-secondary" href="@Url.Action("Index", "Preview", new { area = "Orchard.ContentPreview", id = previewId })">@T["Preview"]</a>

<div id="renderPreviewUrl" style="display:none" data-value="@Url.Action("Render", "Preview", new { area = "Orchard.ContentPreview" })" ></div>
<div id="contentItemType" style="display:none" data-value="@Model.ContentItem.ContentType"></div>
<div id="previewId" style="display:none" data-value="@previewId"></div>
<div id="previewContentItemId" style="display:none" data-value="@Model.ContentItem.ContentItemId"></div>
<div id="previewContentItemVersionId" style="display:none" data-value="@Model.ContentItem.ContentItemVersionId"></div>

<script asp-src="/Orchard.ContentPreview/Scripts/contentpreview.edit.js" depends-on="admin" at="Foot"></script>
